import request from '@/utils/request'
//网络请求
// 查询字典类型列表
export function selectStudentList(query) {
    return request({
    url:"/student/list", 
    method:"get",
    params:query
    })
}
export function addStudent(data) {
    return request({
    url:"/student/addStudent", 
    method:"post",
    data:data
    })
}
export function type(id) {
  return request({
    url:"/student/query/"+id,
    method:'get'
  })
}
// 修改用户
export function updStudent(data) {
    return request({
      url:"/student/updStudent",
      method:"post",
      data: data
    })
  }
  
  // 删除用户
  export function delStudent(id) {
    return request({
      url:"/student/" + id,
      method: "delete"
    })
  }
